package cn.dkk.structure_design.combination.pojo;

/**
 * @author dkk
 * @date 2022/7/18
 * @desc
 */
public class MenuItem extends MenuComponent {

    public MenuItem(String name, int level) {
        this.setName(name);
        this.setLevel(level);
    }

    @Override
    public void print() {
        System.out.println(getName());
    }
}
